def year_desc(year):
    number2 = 4
    number3 = 7
    mod = year % number2
    days = 365

    if mod == 0:
        days = days + 1
        print(f"{year}年是润年,有{round(days / number3)}周余{days % number3}天")
    else:
        print(f"{year}年是平年,有{round(days / number3)}周余{days % number3}天")


while True:
    tmp = int(input("请输入年份，如2024："))
    year_desc(tmp)
